Skip to content

Move default version to repo.pp#768

Closed
mikhaildudzin wants to merge 1 commit intovoxpupuli:masterfrom
mikhaildudzin:RepoLocationFix
Closed

Move default version to repo.pp#768
mikhaildudzin wants to merge 1 commit intovoxpupuli:masterfrom
mikhaildudzin:RepoLocationFix

Conversation

@mikhaildudzin
Copy link
Copy Markdown

Pull Request (PR) description

Default version in globals.pp doesn't allow to use repo_location and having repo_location doesn't work at all, because it fails on check, as version is always defined
if $version != undef and $repo_location != undef { fail('version' is not supported with 'repo_location') }
To fix this I propose to set default version only if both $version and $repo_location are undef.

This Pull Request (PR) fixes the following issues

One can't use repo_location setting

Comment thread manifests/repo.pp
fail('`version` or `repo_location` is required')
$version = '5.0'
}
if $version != undef and $repo_location != undef {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikhaildudzin please have a look at #779. I have removed this test so that $version is just ignored when $repo_location is set.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, going to close this PR
Thanks for collaboration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants